mui.plusReady(function() {
	mui.previewImage();
	function address(address) {
		return address
	};
	
	var address1 = address("http://123.207.20.97");
	var ssv = plus.webview.currentWebview(); //定义一个接收数据的对象
	var tile = document.getElementById("title-name"); //承载数据的 对象
	var sex = document.getElementById("sex");
	tile.innerText = ssv.sex + ssv.typem + ssv.name;

	var dddta = {
		girl_id: ssv.name,

	}

	//状态点击 传给后台
	$("#user-status").on('tap',function(){
		var picker = new mui.PopPicker();
		picker.setData([{
			value: "1",
			text: "普通"
		}, {
			value: "2",
			text: "置顶"
		}, {
			value: "3",
			text: "屏蔽"
		}, {
			value: "4",
			text: "拉黑"
		}])

		picker.pickers[0].setSelectedIndex(1, 1000); //默认选中第二个选项
		picker.show(function(SelectedItem) {
			$("#user-status").text(SelectedItem[0].text)
//			console.log(SelectedItem[0].value);
			var sp = {
				girl_id: ssv.name,
				show_status: SelectedItem[0].value
			}
//			var setstaut;
//			if (ssv.typem == "头像审核") {
//				setstaut = sp;
//				sn = JSON.stringify(sp);
//				console.log(sn)
//			}else{
			var	setstaut = JSON.stringify(sp,null,4);
//			}
			console.log(setstaut)
			mui.ajax(address1 + "/admin/GirlReview/setNewGirlAuth", {
				data: sp,
				dataType: 'json', //服务器返回json格式数据
				type: 'post', //HTTP请求类型
				timeout: 10000, //超时时间设置为10秒；
				headers: {
					'Content-Type': 'application/json'
				},
				success: function(data) {
					sn = JSON.stringify(data);
					console.log(sn)
					if(data.code == 1) {
						console.log("成功")

					} else {
						alert(data.data)
					}
				},
				error: function(xhr, type, errorThrown) {
					//异常处理；
					console.log("异常");
				}
			});
		})
	})

	if(ssv.sex == "girl" && ssv.typem == "身份证审核") {
		$(".user-idcard").show();
		showMassege(address1 + "/admin/GirlReview/getIdCardAuth", dddta)

	}
	if(ssv.sex == "girl" && ssv.typem == "头像审核") {
		$(".user-idcard").show();
		showMassege(address1 + "/admin/GirlReview/getGirlHeadAuth", dddta)
	}
	if(ssv.sex == "girl" && ssv.typem == "新用户审核") {
		$(".user-head-down").show();
		showMassege(address1 + "/admin/GirlReview/getGirlHeadAuth", dddta)
	}
	if(ssv.typem == "相册审核" && ssv.sex == "girl") {
		$(".photo-out").show();
		showMassege(address1 + "/admin/GirlReview/getPhotoAuth", dddta)
	}
	if (ssv.typem == "视频审核" && ssv.sex == "girl") {
		$("#video-content").show(); $("#submitee").show();
		showMassege(address1 + "/admin/GirlReview/getVideoAuth", dddta)
	}
	if(ssv.typem == "语音审核" && ssv.sex == "girl") {
	    $("#viace-content").show();
		showMassege(address1 + "/admin/GirlReview/getVoiceAuth", dddta)
	}
	if(ssv.typem == "模特审核" && ssv.sex == "girl") {
		 $("#photo-content").show();$("#submitee").show();
		showMassege(address1 + "/admin/girlProfessionAuth/getGirlModelAuth", dddta)
	}
	if(ssv.typem == "网红审核" && ssv.sex == "girl") {
	      $("#celebrity-content").show();$("#submitee").show();
		showMassege(address1 + "/admin/GirlProfessionAuth/getGirlPlatformAuth", dddta)
	}
	if(ssv.typem == "白领审核" && ssv.sex == "girl") {
		$(".user-idcard").show();$("#submitee").show();
		showMassege(address1 + "/admin/GirlProfessionAuth/getProfessiAuth", dddta)
	}

	function showMassege(src, data) { //首次执行请求的函数 
		mui.ajax(src, {　　　
			data: data,
			dataType: 'json', //服务器返回json格式数据 
			type: 'post', //HTTP请求类型 
			timeout: 10000, //超时时间设置为10秒；
			headers: {
				'Content-Type': 'application/json'
			},
			success: function(data) {
				
				var ddd = data.data; //转换成字符串   打印
				
					console.log(ddd.show_status)
				var strat = "";
				if(ddd.show_status == 0 || ddd.show_status == 1) {
					strat = "普通"
				}
				if(ddd.show_status == 2) {
					
					strat = "置顶"
				}
				if(ddd.show_status == 3) {
					strat = "屏蔽"
				}
				if(ddd.show_status == 4) {
					strat = "拉黑"
				}
				$("#user-status").text(strat);
				var ccc = JSON.stringify(ddd);
				console.log(ccc)
				var ii = JSON.stringify(ssv);
				console.log(ii);
				if(ssv.typem == "相册审核") {
					$("#head-src").attr('src', ddd.head_img);
					$("#face-src").attr('src', ddd.face_img);
					$("#nick").text(ddd.girl_nick);
					if(ddd.head_img == "") {
						$("#head_font").text("无头像")
					}
					if(ddd.face_img == "") {
						$("#face_font").text("未认证")
					}
					photoF("相册审核");
				}

				if(ssv.typem == "身份证审核") {
					$("#head-src").attr('src', ddd.head_img);
					$("#face-src").attr('src', ddd.face_img);
					$(".idCard-img img").attr('src', ddd.girl_idcard);
					$("#nick").text(ddd.girl_nick);
					toshdiv("new-img", ddd);
				}
				
				if(ssv.typem == "头像审核") {

					$("#head-src").attr('src', ddd.auth_head_img);
					$("#face-src").attr('src', ddd.auth_face_img);
					$(".idCard-img img").attr('src', ddd.head_img);
					$("#nick").text(ddd.girl_nick);
					toshdiv("new-img", ddd);

				}
				
				if (ssv.typem == "视频审核") {
					$("#head-src").attr('src', ddd.head_img);
					$("#face-src").attr('src', ddd.face_img);
					$("#nick").text(ddd.girl_nick);
					$("#video-content video").attr('src',ddd.girl_video);
					$("#active-no").on("tap",function(){
						var sp = {
							girl_id: ssv.name,
							video_status:3
						}
						var spp = JSON.stringify(sp);
						sethead(address1 + "/admin/GirlReview/setVideoAuth", spp, "down-content");
					})
					$("#active-ok").on('tap',function(){
						var sp = {
							girl_id: ssv.name,
							video_status:2
						}
						
						var spp = JSON.stringify(sp);
						sethead(address1 + "/admin/GirlReview/setVideoAuth", spp, "down-content");
					})
				}
				
				if (ssv.typem == "语音审核") {
					
					$("#head-src").attr('src', ddd.head_img);
					$("#face-src").attr('src', ddd.face_img);
					$("#nick").text(ddd.girl_nick);
					$("#audio-src source").attr('src',ddd.girl_voice);
					aplayer("ap21","贵觅","语音认证",ddd.girl_voice,"../img/xiaotubiao.png","player3");
					$("#active-no").on("tap", function() {
						var sp = {
							girl_id: ssv.name,
							voice_status: 3
						}
						var spp = JSON.stringify(sp);
						sethead(address1 + "/admin/GirlReview/setVoiceAuth", spp, "down-content");
					})
					$("#active-ok").on('tap', function() {
						
						var sp = {
							girl_id: ssv.name,
							voice_status: 2
						}
					
						var spp = JSON.stringify(sp);
						sethead(address1 + "/admin/GirlReview/setVoiceAuth", spp, "down-content");
					})
				}
				
				if (ssv.typem == "模特审核") {
					
					$("#head-src").attr('src', ddd.head_img);
					$("#face-src").attr('src', ddd.face_img);
					$("#nick").text(ddd.girl_nick);
					$(".modal-img1").attr('src',ddd.model_img_one);
					$(".modal-img2").attr('src',ddd.model_img_two);
					$(".modal-img3").attr('src',ddd.model_img_three);
					$("#active-no").on("tap", function() {
						
						var sp = {
							girl_id: ssv.name,
							model_status: 3
						}
						var spp = JSON.stringify(sp);
						
						sethead(address1 + "/admin/girlProfessionAuth/setGirlModelAuth", spp, "down-content");
					})
					$("#active-ok").on('tap', function() {
					
						var sp = {
							girl_id: ssv.name,
							model_status: 2
						}
					
						var spp = JSON.stringify(sp);
						sethead(address1 + "/admin/girlProfessionAuth/setGirlModelAuth", spp, "down-content");
					})
				}
				
				if (ssv.typem == "网红审核") {
					//networkAnchor 主播的     webCelebrity 网红的
					$("#head-src").attr('src', ddd.head_img);
					$("#face-src").attr('src', ddd.face_img);
					$("#nick").text(ddd.girl_nick);
					if (ddd.networkAnchor == "") {
						$("#platform-type").text("网红");
						$("#platform_auth_id").text(ddd.webCelebrity.platform_auth_id);
						$("#user-platformID").text(ddd.webCelebrity.platform_id);
					    $("#user-platformName").text(ddd.webCelebrity.platform_name);
					}
					if (ddd.webCelebrity == "") {
						$("#platform-type").text("主播");
						$("#platform_auth_id").text(ddd.networkAnchor.platform_auth_id);
						$("#user-platformID").text(ddd.networkAnchor.platform_id);
						$("#user-platformName").text(ddd.networkAnchor.platform_name);
					}
					$("#active-no").on("tap", function() {
						console.log($("#celebrity-content").html())
						var sp = {
							platform_auth_id :$("#platform_auth_id").text(),
							girl_id: ssv.name,
							platform_status: 3
						}
						
						var spp = JSON.stringify(sp);
						
						sethead(address1 + "/admin/GirlProfessionAuth/setGirlPlatformAuth", spp, "down-content");
					})
					$("#active-ok").on('tap', function() {
					
						var sp = {
							platform_auth_id:$("#platform_auth_id").text(),
							girl_id: ssv.name,
							platform_status: 2
						}
					
						var spp = JSON.stringify(sp);
						sethead(address1 + "/admin/GirlProfessionAuth/setGirlPlatformAuth", spp, "down-content");
					})
					
				}
				
				if (ssv.typem == "白领审核") {
					var zhiye;
					if (ddd.type == 4) {zhiye = "学生"}if (ddd.type == 1) {zhiye = "白领"}
					if (ddd.type == 2) {zhiye = "医护"}if (ddd.type == 3) {zhiye = "空乘"}
					if (ddd.type == 5) {zhiye = "教师"}if (ddd.type == 6) {zhiye = "舞蹈"}
					$("#head-src").attr('src', ddd.head_img);
					$("#face-src").attr('src', ddd.face_img);
					$("#user-zhiyetype").text(ddd.type);
					$("#nick").text(ddd.girl_nick);$("#zhiye").text(zhiye);
					$("#user-idcard").attr('src',ddd.profession);
					$("#active-no").on("tap", function() {
						
						var sp = {
							auth_type: $("#user-zhiyetype").text(),
							girl_id: ssv.name,
							professi_status: 3
						}
					
						var spp = JSON.stringify(sp);
					console.log(spp)
						sethead(address1 + "/admin/GirlProfessionAuth/setProfessiAuth", spp, "down-content");
					})
					$("#active-ok").on('tap', function() {
					
						var sp = {
							auth_type: $("#user-zhiyetype").text(),
							girl_id: ssv.name,
							professi_status: 2
						}
					
						var spp = JSON.stringify(sp);
						sethead(address1 + "/admin/GirlProfessionAuth/setProfessiAuth", spp, "down-content");
					})
				}

				if(ssv.typem == "新用户审核") {
					
					$("#head-src").attr('src', ddd.auth_head_img);
					$("#face-src").attr('src', ddd.auth_face_img);
					$("#head-src-new").attr('src', ddd.head_img);
					$("#face-src-new").attr('src', ddd.face_img);
					$("#nick").text(ddd.girl_nick);
					console.log(ddd.head_img_state)
					if(ddd.head_img_state == 2) {

						$("#newhead").hide();
					}
					if(ddd.face_img_state == 2) {
						$("#newface").hide();
					}
				
					
					if(ddd.auth_head_img == "") {
						$("#head-src").remove();
						$("#head_font").text("无头像")
					}
					if(ddd.auth_face_img == "") {
						$("#face-src").remove();
						$("#face_font").text("未认证")
					}
					console.log($(".user-head").html())
					toshdiv("newhead", ddd);
					toshdiv("newface", ddd);
				}

				function photoF(ttxxt) { // 相册显示 的函数
					if(ssv.typem == ttxxt) {

						var photo_pub = ddd.public_photo;
						var photo_priv = ddd.private_photo;
						var stt = {};
						stt.pub = photo_pub;
						stt.prv = photo_priv;
						if(stt.pub.length == 0) { //没有公开相册 显示私密照片
							$("#photo-img1").attr('src', stt.prv[0].private_photo);
							$("#div1 h1").text("私密相册").attr("vuale", 0);
							$("#div1 span").text(stt.prv[0].private_photo_id);
							if(stt.prv.length == 1) {
								$("#div3 h1").text("没有了").hide();
								$("#div2 h1").text("没有了").hide();
							}
							if(stt.prv.length >= 2) { //判断私密照片 有没有第二张
								$("#photo-img2").attr('src', stt.prv[1].private_photo);
								$("#div2 h1").text("私密相册").attr("vuale", 1);
								$("#div2 span").text(stt.prv[1].private_photo_id);
							} else {
								$("#div3 h1").text("没有了").hide();
							}
							if(stt.prv.length >= 3) { // 判断私密 照片有没有第三张
								$("#photo-img3").attr('src', stt.prv[2].private_photo);
								$("#div3 span").text(stt.prv[2].private_photo_id);
								$("#div3 h1").text("私密相册").attr("vuale", 2);
							}

						} else { //有公开相册  直接显示公开相册
							$("#photo-img1").attr('src', stt.pub[0].public_photo); //有的时候显示第一张
							$("#div1 h1").text("公开相册").attr("vuale", 0);
							$("#div1 span").text(stt.pub[0].public_photo_id);
							if(stt.pub.length == 1) {
								$("#div3 h1").text("没有了").hide();
								$("#div2 h1").text("没有了").hide();
							}
							if(stt.pub.length >= 2) { //判断公开照片 有没有第二张  没有就显示私密的第一张
								$("#photo-img2").attr('src', stt.pub[1].public_photo);
								$("#div2 h1").text("公开相册").attr("vuale", 1);
								$("#div2 span").text(stt.pub[1].public_photo_id);
							} else {
								if(stt.prv.length > 0) {
									$("#photo-img2").attr('src', stt.prv[0].private_photo);
									$("#div2 h1").text("私密相册").attr("vuale", 0);
									$("#div2 span").text(stt.prv[0].private_photo_id);
								}

							}

							if(stt.pub.length >= 3) { // 判断私密 照片有没有第三张
								$("#photo-img3").attr('src', stt.pub[2].public_photo);
								$("#div3 h1").text("公开相册").attr("vuale", 2);
								$("#div3 span").text(stt.pub[2].public_photo_id);
							} else {
								var imgUrl = $("#div2 img").attr("src");

								if(stt.prv.length >= 2) {
									console.log(stt.prv[1].private_photo)
									$("#photo-img3").attr('src', stt.prv[1].private_photo);
									$("#div3 h1").text("私密相册").attr("vuale", 1);
									$("#div3 span").text(stt.prv[1].private_photo_id);
								} else {
									$("#div3 h1").text("没有了").hide();
								}

							}

						}
						console.log($(".photo").html())

						toshdiv("div1", stt);
						toshdiv("div2", stt);
						toshdiv("div3", stt);
						//								console.log($(".photo").html())

					}
				}

				//   图片拖动的函数
				function toshdiv(obj, data) {
					var isdrag = false;
					var NowLeft, disX, divx, flag;
					var NowTop, disY, divy;

					var oDiv2 = document.getElementById(obj);
					divx = parseInt(oDiv2.style.left + 0);
					divy = parseInt(oDiv2.style.top + 0);
					oDiv2.addEventListener('touchstart', thismousedown);
					oDiv2.addEventListener('touchend', thismouseup);
					oDiv2.addEventListener('touchmove', thismousemove);

					function thismousedown(e) { //点击的时候
						event.preventDefault();
						if(ssv.typem == "相册审核") {
							var a = $("#div1").find("h1").text();
							var b = $("#div2").find("h1").text();
							var c = $("#div3").find("h1").text();
							console.log(a + b + c)
							if(a == "公开相册" && a == b && a == c && b == c) {
								flag = 1
							}
							if(a != b || a != c || b != c) {
								flag = 2
							}
							if(a == "私密相册" && b == c && a == b && a == c) {
								flag = 3
							}
						}

						isdrag = true;
						NowLeft = parseInt(oDiv2.style.left + 0);
						NowTop = parseInt(oDiv2.style.top + 0);
						disX = e.touches[0].pageX;
						disY = e.touches[0].pageY;

						//     console.log(disX+"+"+disY)
						return false;

					}

					function thismousemove(e) { //拖动的时候
						event.preventDefault();

						if(isdrag) {

							oDiv2.style.left = NowLeft + e.touches[0].pageX - disX + 'px';
							oDiv2.style.top = NowTop + e.touches[0].pageY - disY + 'px';
							//    console.log(oDiv2.style.left +"+"+oDiv2.style.top)
							//    if (parseInt(oDiv2.style.left)>0) {
							//    	console.log("1")
							//    }
							//    if(parseInt(oDiv2.style.left)<0){
							//    	console.log("-1")
							//    }
							return false;
						}
					}

					var n = 50;

					function thismouseup(e) { //停止的时候
						event.preventDefault();

						var photoType = $(this).text();
						var photoType_num = $(this).find("h1").attr("vuale");

						if(parseInt(oDiv2.style.left) > 50) { // 往右边移动的时候 大于   5 0px  通过
							if(ssv.typem == "相册审核") {
								var zidex = $("#" + obj).css("z-index");
								var phtotype = $("#" + obj).find("h1").text();
								var da1 = {
									girl_id: ssv.name,
									public_photo: [{
										photo_id: $("#" + obj).find("span").text(),
										is_check: 2
									}]
								};
								var da2 = {
									girl_id: ssv.name,
									private_photo: [{
										photo_id: $("#" + obj).find("span").text(),
										is_check: 2
									}]
								}
								if(phtotype == "公开相册") {
									var sp = JSON.stringify(da1);

									setphoto(address1 + "/admin/GirlReview/setPhoneAuth", sp);
								}
								if(phtotype == "私密相册") {
									var sp = JSON.stringify(da2);

									setphoto(address1 + "/admin/GirlReview/setPhoneAuth", sp);
								}

								divHide(oDiv2, data, flag, photoType, photoType_num); //执行 数据的重构
								oDiv2.style.left = 0; //归位
								oDiv2.style.top = 0; //归位
								oDiv2.style.zIndex = zidex - 3; //层级 到最后去
							}

							if(ssv.typem == "新用户审核") {
								var setData1 = {
									girl_id: ssv.name,
									girl_head_state: 2
								}
								var setData2 = {
									girl_id: ssv.name,
									girl_face_state: 2
								}
								if(obj == "newhead") {
									var sp = JSON.stringify(setData1);
									sethead(address1 + "/admin/GirlReview/setNewGirlAuth", sp, obj);

								}
								if(obj == "newface") {
									var sp = JSON.stringify(setData2);
									sethead(address1 + "/admin/GirlReview/setNewGirlAuth", sp, obj);

								}

							}
							
							if (ssv.typem == "头像审核") {
								var set_Data ={
									girl_id: ssv.name,
									girl_head_state: 2
								}
								var sp = JSON.stringify(set_Data);
								sethead(address1 + "/admin/GirlReview/setMemberHead", sp, obj);
							}
							
							if (ssv.typem == "身份证审核") {
								var set_Data ={
									girl_id: ssv.name,
									idcard_status: 2
								}
								var sp = JSON.stringify(set_Data);
								sethead(address1 + "/admin/GirlReview/setGirlIdCard", sp, obj);
							}

						}
						var numtsr = -50;
						if(parseInt(oDiv2.style.left) < 50 && parseInt(oDiv2.style.left) > numtsr) {

							oDiv2.style.left = 0;
							oDiv2.style.top = 0;
							return
						}
						if(parseInt(oDiv2.style.left) < -50) { //往左移动 50px 审核不通过
							
							if(ssv.typem == "相册审核") {
								var zidex = $("#" + obj).css("z-index");
								var phtotype = $("#" + obj).find("h1").text();
								var da1 = {
									girl_id: ssv.name,
									public_photo: [{
										photo_id: $("#" + obj).find("span").text(),
										is_check: 3
									}]
								};
								var da2 = {
									girl_id: ssv.name,
									private_photo: [{
										photo_id: $("#" + obj).find("span").text(),
										is_check: 3
									}]
								}
								if(phtotype == "公开相册") {
									var sp = JSON.stringify(da1);

									setphoto(address1 + "/admin/GirlReview/setPhoneAuth", sp);
								}
								if(phtotype == "私密相册") {
									var sp = JSON.stringify(da2);

									setphoto(address1 + "/admin/GirlReview/setPhoneAuth", sp);
								}

								divHide(oDiv2, data, flag, photoType, photoType_num); //执行 数据的重构
								oDiv2.style.left = 0; //归位
								oDiv2.style.top = 0; //归位
								oDiv2.style.zIndex = zidex - 3; //层级 到最后去
							}

							if(ssv.typem == "新用户审核") {
								var setData1 = {
									girl_id: ssv.name,
									girl_head_state: 3
								}
								var setData2 = {
									girl_id: ssv.name,
									girl_face_state: 3
								}
								if(obj == "newhead") {
									var sp = JSON.stringify(setData1);
									sethead(address1 + "/admin/GirlReview/setNewGirlAuth", sp, obj);

								}
								if(obj == "newface") {
									var sp = JSON.stringify(setData2);
									sethead(address1 + "/admin/GirlReview/setNewGirlAuth", sp, obj);

								}

							  }
							
							if (ssv.typem == "头像审核") {
								var set_Data ={
									girl_id: ssv.name,
									girl_head_state: 3
								}
								var sp = JSON.stringify(set_Data);
								sethead(address1 + "/admin/GirlReview/setMemberHead", sp, obj);
							}
							if (ssv.typem == "身份证审核") {
								var set_Data ={
									girl_id: ssv.name,
									idcard_status: 3
								}
								var sp = JSON.stringify(set_Data);
								sethead(address1 + "/admin/GirlReview/setGirlIdCard", sp, obj);
							}

						}

						isdrag = false;
					};
				}

			},
			error: function(xhr, type, errorThrown) {
				console.log(type);
			}
		})
	}
	//女生相册执行的重构函数
	function divHide(obj, ccc, flag, photoType, photoType_num) {
		var num = parseInt(photoType_num);

		if(flag == 1) { //在全是公开相册的时候
			console.log(photoType_num + 4)
			if(ccc.pub.length < parseInt(photoType_num) + 4) {
				
				if(ccc.prv.length > 0) {
					$(obj).find("img").attr("src", ccc.prv[0].private_photo);
					$(obj).find("h1").text("私密相册").attr("vuale", 0);
					$(obj).find("span").text(ccc.prv[0].private_photo_id);
					
				} else {
					
					$(obj).find("h1").text("私密相册").attr("vuale", -1);
					$(obj).hide();
				}

			} else {
				
				$(obj).find("img").attr("src", ccc.pub[num + 3].public_photo);
				$(obj).find("h1").attr("vuale", num + 3);
				$(obj).find("span").text(ccc.pub[num + 3].public_photo_id);

			}
		}
		if(flag == 2) { //两者都有的情况
			var tttp = $(obj).find("h1").text();

			if(tttp == "公开相册") {
				var objbefor, objafter, beforval, afterval;
				var divId = $(obj).attr("id");
				if(divId == "div3") {
					objbefor = $(obj).prev().prev().find("h1").text();
					beforval = $(obj).prev().prev().find("h1").attr("vuale");
					objafter = $(obj).prev().find("h1").text();
					afterval = $(obj).prev().find("h1").attr("vuale");
				}
				if(divId == "div2") {
					objbefor = $(obj).prev().find("h1").text();
					beforval = $(obj).prev().find("h1").attr("vuale");
					objafter = $(obj).next().find("h1").text();
					afterval = $(obj).next().find("h1").attr("vuale");
				}
				if(divId == "div1") {
					objbefor = $(obj).next().find("h1").text();
					beforval = $(obj).next().find("h1").attr("vuale");
					objafter = $(obj).next().next().find("h1").text();
					afterval = $(obj).next().next().find("h1").attr("vuale");
				}

				if(ccc.pub.length <= parseInt(photoType_num) + 4) {
					if(objbefor == tttp) {
						if(afterval == undefined) {
							
							$(obj).hide();
							return
						}

						if(ccc.prv.length <= parseInt(afterval) + 1) {
							
							$(obj).find("h1").text("私密相册").attr("vuale", -1);
							$(obj).hide();
						} else {
							
							$(obj).find("img").attr("src", ccc.prv[parseInt(afterval) + 1].private_photo);
							$(obj).find("h1").text("私密相册").attr("vuale", parseInt(afterval) + 1);
							$(obj).find("span").text(ccc.prv[parseInt(afterval) + 1].private_photo_id)
						}

					}
					if(objafter == tttp) {
						if(beforval == undefined) {
							
							$(obj).hide();
							return
						}
						
						if(ccc.prv.length <= parseInt(beforval) + 1) {
							
							$(obj).find("h1").text("私密相册").attr("vuale", -1);
							$(obj).hide();
						} else {
							$(obj).find("img").attr("src", ccc.prv[parseInt(beforval) + 1].private_photo);
							$(obj).find("h1").text("私密相册").attr("vuale", parseInt(beforval) + 1);
							$(obj).find("span").text(ccc.prv[parseInt(beforval) + 1].private_photo_id)
						}

					}
					if(objafter == objbefor) {
						
						var pn = beforval > afterval ? beforval : afterval;
						if(ccc.prv.length > parseInt(pn) + 1) {
							console.log(parseInt(pn) + 1)
							
							$(obj).find("img").attr("src", ccc.prv[parseInt(pn) + 1].private_photo);
							$(obj).find("h1").text("私密相册").attr("vuale", parseInt(pn) + 1);
							$(obj).find("span").text(ccc.prv[parseInt(pn) + 1].private_photo_id)

						} else {
							
							$(obj).find("h1").text("私密相册").attr("vuale", -1);
							$(obj).hide();
						}

					}

				} else { //如果还有几继续显示
					
					$(obj).find("img").attr("src", ccc.pub[num + 3].public_photo);
					$(obj).find("h1").text("公开相册").attr("vuale", parseInt(num + 3))
					$(obj).find("span").text(ccc.pub[num + 3].public_photo_id)
				}
			}
			if(tttp == "私密相册") {
				if(ccc.prv.length <= parseInt(photoType_num) + 4) {
					
					$(obj).hide();
					return
				} else {
					
					$(obj).find("img").attr("src", ccc.prv[num + 3].private_photo);
					$(obj).find("h1").text("私密相册").attr("vuale", parseInt(num + 3));
					$(obj).find("span").text(ccc.prv[num + 3].private_photo_id);
				}
			}

		}
		if(flag == 3) { //之有私密照片的情况
			console.log(ccc.prv.length + "..." + parseInt(num + 5))
			if(ccc.prv.length <= parseInt(num + 3)) {
				
				$(obj).find("h1").text("私密相册");
				$(obj).hide();
			} else {
				
				$(obj).find("img").attr("src", ccc.prv[num + 3].private_photo);
				$(obj).find("h1").text("私密相册").attr("vuale", parseInt(num + 3));
				$(obj).find("span").text(ccc.prv[num + 3].private_photo_id);

			}
		}

		
	}

	//女生 相片审核 提交函数		
	function setphoto(url, data) {
		$.ajax({　　　
			url: url,
			data: data,
			dataType: 'json', //服务器返回json格式数据 
			type: 'POST', //HTTP请求类型 
			timeout: 10000, //超时时间设置为10秒；
			headers: {
				'Content-Type': 'application/json'
			},
			success: function(data) {
				var sv = JSON.stringify(data);
				console.log(sv)
				if(data.code == 1) {
					console.log("成功")
				} else {
					alert(data.data)
				}
			},
			error: function(message) {
				console.log("地址请求错误");
			}
		})
	}
	//女生 新用户审核  提交函数		
	function sethead(url, data, obj) {
		$.ajax({　　　
			url: url,
			data: data,
			dataType: 'json', //服务器返回json格式数据 
			type: 'POST', //HTTP请求类型 
			timeout: 10000, //超时时间设置为10秒；
			headers: {
				'Content-Type': 'application/json'
			},
			success: function(data) {
				var sv = JSON.stringify(data);
				console.log(sv)
				if(data.code == 1) {
					
					$("#" + obj).hide();
				} else {
					alert(data.data)
				}
			},
			error: function(message) {
				console.log("message");
			}
		})
	}
	
	//语音播放 函数
	function aplayer(playName,title,author,url,img,playerId){
		
    var playName = new APlayer({
        element: document.getElementById(playerId),
        narrow: false,
        autoplay: false,
        showlrc: false,
        theme: '#ad7a86',
        mutex: true,
        music: {
            title: title,
            author: author,
            url: url,
            pic:img
        }
    });
    playName.init();
//  $(modal).unbind("hide.bs.modal").on('hide.bs.modal', function () {
//      playName.pause();  //暂停
//  })

};

})